#include "interface.h"

GtkWidget*
create_about (void)
{
  const gchar *authors[] = {
    "Andrew Morrison <morria@cs.rpi.edu>",
    NULL
  };
  const gchar *documenters[] = { NULL };
  gchar *translators = NULL;
  GtkWidget *about;

  about = gnome_about_new ("W3live", VERSION,
                        "Copyright Andrew Morrison and the\nDepartment of Computer Science,\nRensselaer Polytechnic Institute",
                        "",
                        authors,
                        documenters,
                        translators,
                        NULL);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (about), TRUE);

  gtk_signal_connect (GTK_OBJECT (about), "close",
                      GTK_SIGNAL_FUNC (gtk_widget_destroy),
                      NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about");

  return about;
}

void
showAbout                              (GtkMenuItem     *menuitem,
                                        gpointer         user_data)
{
	GtkWidget *about = NULL;
	about = create_about();
	gtk_widget_show(about);
}
